/**
 * Copyright (c) 2010 icer He <icerhe@gmail.com>
 */
package com.icerhe.trigger;

import android.content.Context;
import android.util.AttributeSet;
import android.view.View;
import android.widget.LinearLayout;

/**
 * @author icer
 *
 */
public class ListItemLeftButtonLayout extends LinearLayout {
	
    public ListItemLeftButtonLayout(Context context, AttributeSet attrs) {
        super(context, attrs);
    }

    @Override
    public void setPressed(boolean pressed) {
        //如果点击事件是由于父view被点击而触发的,则什么都不做,在这里是避免点击task
    	//的时候把task的启动/停止按钮也按下了
        if (pressed && ((View) getParent()).isPressed()) {
            return;
        }
        super.setPressed(pressed);
    }


}
